﻿@foreach (var p in ViewBag.BanDo)
{
    
    <div id="map_canvas"></div>
    <style>
        #map_canvas {
            height:225px;
            width:370px;
            border: solid 1px #ccc;
        }
    </style>
  
    <script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
    <script>
        function initialize() {
            var myLatlng = new google.maps.LatLng(10.8297653, 106.7737251);
            var mapOptions = {
                zoom: 9,
                center: myLatlng
            };
 
            var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
 
            var contentString = "<table><tr><th>CỬA HÀNG THỜI TRANG FORSHOP - TĂNG NHƠN PHÚ </th></tr><tr><td>Địa chỉ: 103 Tăng Nhơn Phú - Phường Phước Long B - Quận 9 , </td></tr></table>";
 
            var infowindow = new google.maps.InfoWindow({
                content: contentString
            });
 
            var marker = new google.maps.Marker({
                position: myLatlng,
                map: map,
                title: 'Công ty đầu tư xây dựng Trung Trung Bộ'
            });
            infowindow.open(map, marker);
        }
 
        google.maps.event.addDomListener(window, 'load', initialize);
 
 
    </script>
  
}
